﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.ServiceModel.Web;
using System.Text;
using System.Globalization;

namespace WcfServiceWeekdayExtractor.SOAP
{
    public class ServiceWeekday : IServiceWeekday
    {
        public string GetWeekday(DateTime date)
        {
            CultureInfo bulgarianCulture = new CultureInfo("bg-BG");
            string dayOfTheWeek = date.ToString("dddd", bulgarianCulture);
            return dayOfTheWeek;
        }
    }
}
